package com.yiyuzi.admin.role.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author yiyuzi
 * @date 2021/5/9 12:26
 */

@Data
public class RolePrivilegeDTO {
    @ApiModelProperty("主键id")
    private Long id;

    @ApiModelProperty("角色id")
    private Long roleId;

    @ApiModelProperty("角色名称")
    private String roleName;

    @ApiModelProperty("权限id")
    private Long privilegeId;

    @ApiModelProperty("权限名称")
    private String privilegeName;

    @ApiModelProperty("权限路径")
    private String path;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
}
